<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tr09" uri="http://www.51i-star.com/news" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员列表</title>
<script type="text/javascript" src="js/jquery-3.1.0.js"></script>
<script type="text/javascript">
function up(id){
	location.href="Upadmin?id="+id;
}
</script>

<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
}
body{
background: #e8e8e8;
}
.t1 {
	float: right;
	height: 26px;
	line-height: 26px;
	padding: 0 10px 0 23px;
	background: #0099FF;
	border-radius: 3px;
	color: #fff;
	font-size: 13px;
	font-weight: normal;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	margin-right: 20px;
}

.t2 {
	background: #f3f3f3 repeat-x;
	border: 1px solid #ddd;
	padding: 5px;
	color: #808080;
	margin: 0 0 10px 0;
}

	.t3{
		border-collapse: collapse;
		border: none;
		width: 100%;
	}
	
	.t3 td{
		text-align: center;
	}
	
	th,td{
		padding: 8px;
		border: none;
		border-bottom: 1px solid #CCC;
	}
	
	th{
		color: gray;
		border:1px #CCC solid;
		background: #f3f3f3;
	}
	
	td{
		border-bottom: 1px dashed #CCC;
		border-left: 1px dashed #CCC;
		font-size: 12px;
		background: white;
	}
	

.t5 {
	background: #e8e8e8;
	border: 0px red solid;
	height: 70px;
}

.t6 {
	padding-top: 19px;
	font-size: 18px;
	border-bottom: 1px solid #ccc;
}
a{
    color: -webkit-link;
    text-decoration: underline;
    cursor:pointer;
}
input.button {
	padding: 5px 15px 5px;
	margin: 2px 2px;
	border: none;
	background: #0099FF;
	color: #FFF;
	cursor: pointer;
	border-radius: 3px;
}

img {
	vertical-align: middle;
}
	.pager{
		text-align: right;
		padding: 10px;
		background: white;
	}
	
	.pager a{
		text-decoration: none;
		color: gray;
	}
	
	.pager span{
		font-size: 12px;
		color: gray;
	}
p, td, div {
    font: 12px Microsoft Yahei, "sans-serif", "Arial", "Verdana";
}

</style>

</head>


<body>

	<div class="t5">
		<h1 class="t6">
			小熊猫 管理中心—管理员列表 <a href="addAdministrators.jsp" class="t1">添加管理员</a>
		</h1>
	</div>
	<div class="t2">
		<form action="ProductAll">
		<input type="hidden" name="curpage" value="1">
		<input type="hidden" name="pagesize" value="5">
			<img src="image/后台图片/icon_search.gif" border="0" alt="SEARCH" > 
			管理员名称<input name="txt">
			<input type="submit" value=" 搜索 "
				class="button">
		</form>
	</div>
	<div>
	
			<table class="t3">
				<tr>
				<th>头像</th>
				<th>管理员用户</th>
				<th>真实姓名</th>
				<th>性别</th>
				<th>管理员电话</th>
				<th>注册时间</th>
				<th>出生日期</th>
				<th>操作</th>
			</tr>
			
			<c:forEach items="${list}" var="c">
				<tr>
					<td><img src="${empty c.memberPortrait ?'image/后台图片/defaulthead.png':c.memberPortrait}"></td>
					<td>${c.memberUser}</td>
					<td>${c.memberName}</td>
					<td>${c.memberSex}</td>
					<td>${c.memberPhone}</td>
					<td>${c.memberRegistraTime}</td>
					<td>${c.memberBirthday}</td>
					<td><a onclick="up(${c.memberId})"><img  src="image/商品列表/bj.png"></a></td>
				</tr>
			</c:forEach>
			</table>
	</div>
	<div class="pager">
		<tr09:pager url="AdminServlet" pagesize="5" 
			total="${total}" curpage="${param.curpage}"/>
	</div>
</body>
</html>